/******************************************************************
 * @version      : 1.0
 * @Author       : zhl
 * @Date         : 2023-05-17 16:37:12
 * @LastEditors  : zhl
 * @E-Mail       : zhll168@163.com
 * @Description  : 业务描述
 ******************************************************************/

#ifndef __UPGRADE_JSON_MANAGER_H__
#define __UPGRADE_JSON_MANAGER_H__
#include "upgrade_data.h"


class JsonManager
{
private:
    /* data */
    static JsonManager c_json_manager;

private:

public:
    JsonManager(/* args */);
    ~JsonManager();

    static JsonManager &getInstance();

    UPGRADE_REQ_MSG_TYPE get_upgrade_info(std::string msg);
    GET_LOG_REQ get_log_req(std::string msg);
    REPORT_LOG_REQ_OR_REP report_log_req(std::string msg);
    MSG_HEADER get_msg_head(std::string msg);
    std::string get_response_msg(UPGRADE_REP_MSG_TYPE rep);
    std::string get_online_msg(ONLINE_MSG_TYPE online);
    std::string get_report_log_msg(REPORT_LOG_REQ_OR_REP data);
    EXECUTE_CMD_TYPE cmd_execute_req(std::string msg);
    std::string get_cmd_result(EXECUTE_CMD_RESULT data);

};


#endif /* __UPGRADE_JSON_MANAGER_H__ */